#ifndef Point_GRAPH_H
#define Point_GRAPH_H

#include <QGraphicsItem>
#include "playdesk.h"

class Point_Graph : public QGraphicsItem
{
public:
    Point_Graph(double step, Point point, Playdesk *table, int x, int y);

    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *);

private:
    QColor color;
    double size;
    bool None_Flag;
    Playdesk *playdesk;
    int x;
    int y;
    double stepp;
};

#endif // Point_GRAPH_H
